package com.cheer.vo;

import com.cheer.entity.Account;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author cheer
 */
@Data
@Accessors(chain = true)
public class AccountVO {

    private String phone;

    private String backupAccount;

    private String accountName;

    private Integer role;

    private Integer title;

    public static AccountVO build(Account account) {
        AccountVO accountVO = new AccountVO();
        accountVO.setPhone(account.getPhone());
        accountVO.setBackupAccount(account.getBackupAccount());
        accountVO.setRole(account.getRole());
        return accountVO;
    }
}
